Skip to content

Adopt health shell scripts; worktree_status becomes a /health leg#35

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/health-shell-worktrees
Jul 8, 2026
Merged

Adopt health shell scripts; worktree_status becomes a /health leg#35
Jammy2211 merged 1 commit into
mainfrom
feature/health-shell-worktrees

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Roadmap item 11:

  • The health shell dispatcher + its three implementations move here from PyAutoMind/scripts/ (Mind stores intent; health dashboards belong to Heart). Mind-side forwarding shims + the /health command doc update land in companion PRs.
  • worktree_status is retired as a standalone skill and becomes the procedure behind /health worktrees — same pattern as the pyauto-status legs.

🤖 Generated with Claude Code

- scripts/{health,health_sync,health_release,health_audit}.sh move here from
  PyAutoMind/scripts — the Heart owns the health surface; a health dashboard
  living in the intent organ was a boundary leak. Mind keeps forwarding shims.
- skills/worktree_status/SKILL.md -> reference.md: retired as a standalone
  installed skill; it is now the procedure behind the new `/health worktrees`
  leg (same pattern as the pyauto-status legs).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 8, 2026 10:41
@Jammy2211 Jammy2211 merged commit 3bf11a8 into main Jul 8, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/health-shell-worktrees branch July 8, 2026 10:41
Jammy2211 added a commit to PyAutoLabs/PyAutoMind that referenced this pull request Jul 8, 2026
The health dispatcher and its implementations moved to PyAutoHeart/scripts
(PyAutoLabs/PyAutoHeart#35) — Mind stores intent, Heart owns the health
surface. These shims keep any existing sourcing path working; verified the
dispatcher still defines and runs through them.

Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Jammy2211 added a commit to PyAutoLabs/PyAutoBrain that referenced this pull request Jul 8, 2026
The worktree/task dashboard becomes the fourth /health leg (procedure:
PyAutoHeart/skills/worktree_status/reference.md, PyAutoLabs/PyAutoHeart#35);
repo_cleanup references updated; the shell-side pointer follows health.sh to
PyAutoHeart/scripts.

Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relocates the local health shell dispatcher and its implementations into PyAutoHeart (aligning “health surface” ownership with Heart), and updates the former worktree_status skill reference to reflect its new role as the /health worktrees leg procedure.

Changes:

  • Added a health shell dispatcher (scripts/health.sh) plus three implementations: sync dashboard, release-run dashboard, and structural audit.
  • Converted skills/worktree_status/reference.md from standalone-skill framing to /health worktrees leg documentation.
  • Introduced helper viewer functions (health-report, health-json, health-triage) for release-run artifacts.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
skills/worktree_status/reference.md Updates docs to reframe worktree status as the /health worktrees leg procedure.
scripts/health.sh Adds the health dispatcher function routing to sync/release/audit implementations.
scripts/health_sync.sh Implements cross-repo git sync status dashboard with optional follow-up sections.
scripts/health_release.sh Implements release-prep run dashboard + report/json/triage viewer helpers.
scripts/health_audit.sh Implements an on-demand structural audit for non-git dirs, old stashes, and abandoned branches.
Comments suppressed due to low confidence (1)

skills/worktree_status/reference.md:6

  • This file is now described as a procedure for the /health worktrees leg, but this paragraph still calls it a "Diagnostic skill". Consider updating this wording here (and other remaining references to "skill" later in the document) to avoid implying it is still an invokable standalone skill.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/health_sync.sh
Comment on lines +224 to +226
for r in "${actions_pull[@]}"; do
echo " git -C $r pull --ff-only"
done
Comment thread scripts/health_release.sh
Comment on lines +171 to +172
# _pyauto_run_file <subpath> [run-dir-arg] — resolve a file inside the latest
# (or supplied) run directory. Used by the pyauto-{report,json,triage} viewers.
Comment thread scripts/health_release.sh
Comment on lines +177 to +180
if [[ ! -e "$run_dir" ]]; then
echo "pyauto: no run found at $run_dir" >&2
return 1
fi
Comment thread scripts/health_release.sh
Comment on lines +183 to +187
local target="$run_dir/$subpath"
if [[ ! -f "$target" ]]; then
echo "pyauto: $target missing" >&2
return 1
fi
Comment thread scripts/health_sync.sh
Comment on lines +231 to +233
for r in "${actions_set_upstream[@]}"; do
echo " git -C $r branch --set-upstream-to=origin/main main"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants